﻿<%@ Register TagPrefix="uc1" TagName="SurveyListControl" Src="UserControls/SurveyListControl.ascx" %>
<%@ Register TagPrefix="uc1" TagName="FooterControl" Src="UserControls/FooterControl.ascx" %>
<%@ Register TagPrefix="uc1" TagName="HeaderControl" Src="UserControls/HeaderControl.ascx" %>
<%@ Register TagPrefix="ftb" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>
<%@ Register TagPrefix="uc1" TagName="PageBranchingRulesControl" Src="UserControls/PageBranchingRulesControl.ascx" %>
<%@ Register TagPrefix="uc1" TagName="SurveyMessageConditonsControl" Src="UserControls/SurveyMessageConditonsControl.ascx" %>
<%@ Register TagPrefix="uc1" TagName="FilterOptionControl" Src="UserControls/FilterOptionControl.ascx" %>

<%@ Page language="c#" MasterPageFile="MsterPageTabs.master"   ValidateRequest="false"	AutoEventWireup="false" Inherits="Votations.NSurvey.WebAdmin.ConditionalEndMessage" Codebehind="ConditionalEndMessage.aspx.cs" %>


<asp:content id="Content1" contentplaceholderid="ContentPlaceHolder1" runat="Server">
<table class="TableLayoutContainer">
  <tr>
    <td></td>
  </tr>
  <tr>
    <td class="contentCell" valign="top">
    
      <table class="innerText">
        <tr>
          <td colspan="2"><font class="titleFont"><asp:literal id="AddNewConditionTitle" runat="server" EnableViewState="False"></asp:literal></font>
          <br /><br /><br /> </td>
        </tr>
        <tr>
          <td>&nbsp;&nbsp; </td>
          <td> <asp:Label ID="MessageLabel" runat="server"  CssClass="ErrorMessage" Visible="False"></asp:Label></asp:label>

            <table class="innerText">
              <tr>
                <td nowrap="nowrap" width="140"><strong><asp:literal id="MessageConditionLabel" 
                   runat="server" EnableViewState="False" 
                  Text="Condition :"></asp:literal></strong></td>
                <td width="480"><asp:dropdownlist id="MessageConditionDropdownlist" runat="server" AutoPostBack="True"></asp:dropdownlist></td>
              </tr>
              <tr>
                <td nowrap="nowrap" width="140"><strong><asp:literal id="QuestionLabel" 
                   runat="server" 
                  EnableViewState="False">Question :</asp:literal></strong> </td>
                <td width="480"><asp:dropdownlist id="QuestionFilterDropdownlist" runat="server" AutoPostBack="True"></asp:dropdownlist></td>
              </tr>
              <tr>
                <td width="140"><strong><asp:label id="ConditionalLabel" runat="server">Conditional operator :</asp:label></strong></td>
                <td><asp:dropdownlist id="LogicDropDownList" runat="server" AutoPostBack="True"></asp:dropdownlist></td>
              </tr>  
              <tr>
                <td width="140"><strong><asp:label id="AnswerLabel" runat="server">Answer :</asp:label></strong></td>
                <td><asp:dropdownlist id="AnswerFilterDropdownlist" runat="server" AutoPostBack="True"></asp:dropdownlist></td>
              </tr>
              <tr>
                <td width="140"><strong><asp:label id="TextEvaluationConditionLabel" runat="server">Text evaluation condition :</asp:label></strong></td>
                <td><asp:dropdownlist id="ExpressionLogicDropdownlist" runat="server" ></asp:dropdownlist></td>
              </tr>
              <tr>
                <td width="140"><strong><asp:label id="FilterTextLabel" runat="server">Text :</asp:label></strong></td>
                <td><asp:textbox id="TextFilterTextbox" runat="server"></asp:textbox></td>
              </tr>
              <tr>
                <td width="140"><strong><asp:label id="ScoreLabel" runat="server">Score :<br />&nbsp;</asp:label></strong></td>
                <td><asp:textbox id="ScoreTextbox" runat="server" columns="2"></asp:textbox>
               <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="ScoreTextbox"
        ErrorMessage="No Valid Number" ValidationExpression="^-{0,1}\d+$"></asp:RegularExpressionValidator><br />
                   <asp:label id="ScoreRangeLabel" runat="server">and</asp:label>&nbsp;
                   <asp:textbox id="ScoreMaxTextbox" runat="server" columns="2"></asp:textbox>
                   <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="ScoreMaxTextbox"
        ErrorMessage="No Valid Number" ValidationExpression="^-{0,1}\d+$"></asp:RegularExpressionValidator></td>

              </tr>
              <tr>
                <td valign="top" width="140"><strong><asp:label id="ConditionalMessageLabel" runat="server">Message shown on submit :</asp:label></strong></td>
                <td><FTB:FREETEXTBOX 
                  id="ThankYouFreeTextBox" runat="server" 
                  EnableToolbars="True" 
                  UseToolbarBackGroundImage="true" 
                  ToolbarStyleConfiguration="Office2003"
                  Height="225px" 
                  SupportFolder="~/FreeTextBox/" 
                  AutoGenerateToolbarsFromString="true" 
                  Width="600px" 
                  BreakMode="LineBreak" 
                  EnableHtmlMode = "true"
                  ImageGalleryUrl = "ftb.imagegallery.aspx?rif=~/images/&cif=~/images/"
                  FormatHtmlTagsToXhtml = "true"
                  RemoveServerNameFromUrls = "false"
                  ConvertHtmlSymbolsToHtmlCodes = "true"
                  ToolbarLayout="ParagraphMenu, FontFacesMenu, FontSizesMenu, FontForeColorsMenu, FontForeColorPicker, FontBackColorsMenu, FontBackColorPicker, Bold, Italic, Underline | Strikethrough, Superscript, Subscript, InsertImageFromGallery, CreateLink, Unlink, RemoveFormat, JustifyLeft, JustifyRight, JustifyCenter, JustifyFull, BulletedList, Preview, SelectAll, EditStyle | NumberedList, Indent, Outdent, Cut, Copy, Paste, Delete, Undo, Redo, Print, Save, ieSpellCheck, StyleMenu, SymbolsMenu, InsertHtmlMenu, InsertRule, InsertDate | InsertTime, WordClean, InsertImage, InsertTable, EditTable, InsertTableRowBefore, InsertTableRowAfter, DeleteTableRow, InsertTableColumnBefore, InsertTableColumnAfter | DeleteTableColumn, InsertForm, InsertForm, InsertTextBox, InsertTextArea, InsertRadioButton, InsertCheckBox, InsertDropDownList, InsertButton, InsertDiv">
                  </FTB:FREETEXTBOX>
                  <br /><asp:Label id="ScoreTagLabel" runat="server">Score total can be shown using the ::score:: tag inside your message</asp:Label></td>
                  </tr>
                  </table>
                  
                  </td>
                 </tr>
               </table>
               
               <asp:button id="AddMessageConditionButton" runat="server" Text="Add new message condition" Enabled="False"></asp:button>
               <asp:button id="UpdateMessageConditionButton" runat="server" Text="Update message condition"></asp:button>
               <asp:Button id="ConditionCancelButton" runat="server" Text="Cancel / Back"></asp:Button>
               <br /></td>
               </tr>
         
       </table>
 </asp:content>
